package com.example.demo.model;

import lombok.Data;

//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.Id;
//import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
//@Entity
//@Table(name = "sys_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1924648983029179076L;

//    @Id
    private Long    id;               //
//    @Column(name = "username")
    private String  username;         //
//    @Column(name = "email")
    private String  email;            //
//    @Column(name = "pswd")
    private String  password;         // 密码
//    @Column(name = "encrypt")
    private String  encrypt;          // 加密方式
//    @Column(name = "encrypt_pwd")
    private String  encryptPassword;  // 加密后密码
//    @Column(name = "salt")
    private String  salt;             // 盐值 RandomNumberGenerator.nextBytes().toHex()    new SecureRandomNumberGenerator()
//    @Column(name = "create_time")
    private Date    createTime;       //
//    @Column(name = "last_login_time")
    private Date    lastLoginTime;    //
//    @Column(name = "status")
    private Integer status;           //
}
